package com.qianfeng.wuyang.himalaya.fragment;


import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.Toast;

import com.qianfeng.wuyang.himalaya.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class RbDownLoadBaseFragment extends Fragment {
    private Button button;


    public RbDownLoadBaseFragment() {
        // Required empty public constructor
    }

    public static RbDownLoadBaseFragment newInstance( String  text) {
        
        Bundle args = new Bundle();
        args.putString("text",text);
        
        RbDownLoadBaseFragment fragment = new RbDownLoadBaseFragment();
        fragment.setArguments(args);
        return fragment;
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        return inflater.inflate(R.layout.fragment_rb_down_load_base, container, false);
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        button= (Button) view.findViewById(R.id.button2);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Toast.makeText(getContext(), "没有更多内容", Toast.LENGTH_SHORT).show();
            }
        });
       // String  text=getArguments().getString("text");

    }
}
